import request from '@/utils/request'

export default{
    getPageList(page,size){
        return request(
            {
                url:`/exam/pagelist/${page}/${size}`,
                method:'get',
                baseURL:'http://api.exam.com/api/paper/'
            }
        )
    },

    searchList(page,size,cid){
        return request(
            {
                url:`/exam/searchlist/${page}/${size}/${cid}`,
                method:'get',
                baseURL:'http://api.exam.com/api/paper/'
            }
        )        
    },
   
    //获取分类级联选择器
    getOptions(){
        return request({
            
            url:`/category/cascader`,
            method:'get',
            baseURL:'http://api.exam.com/api/paper/'
        })
    },
    
    queryPaperById(id){
        return request({ 
            url:`/exam/${id}`,
            method:'get',
            baseURL:'http://api.exam.com/api/paper/'
        })
    }

    // Edit(id){
    //     return request({
    //         url:`/exam/exam`,
    //         method:'put',
    //         baseURL:'http://api.exam.com/api/paper/',
    //         data:id
    //     })
    // }
}
